
def outbound_mix_1():
  """E1. Outbound call DN1 to Ext1Dn, release DN1"""
  SipPhone1.MakeCall(Ext1DN2)
  Ext1DN2.AnswerCall()
  SipPhone1.ReleaseCall()

def outbound_mix_2():
  """E2. Outbound call DN1 to Ext1Dn, abnormal release DN1"""
  SipPhone1.MakeCall(Ext1DN2)
  SipPhone1.ReleaseCall()

def outbound_mix_3():
  """E3. Outbound call DN1 to Ext1Dn, release Ext1Dn"""
  SipPhone1.MakeCall(Ext1DN2)
  Ext1DN2.AnswerCall()
  Ext1DN2.ReleaseCall()


def outbound_mix_6():
  """E6. DN1 internal call to DN3, DN3 two step transfer to Ext1DN, release DN1"""
  SipPhone1.MakeCall(DN3)
  SipPhone3.AnswerCall()
  SipPhone3.InitiateTransfer(Ext1DN2)
  Ext1DN2.AnswerCall()
  SipPhone3.CompleteTransfer()
  SipPhone1.ReleaseCall()

def outbound_mix_7():
  """E7. DN1 internal call to DN3, DN3 tinit to Ext1DN,  abn rel Ext1DN, rel DN1"""
  SipPhone1.MakeCall(DN3)
  SipPhone3.AnswerCall()
  SipPhone3.InitiateTransfer(Ext1DN2)
  SipPhone3.ReleaseCall()
  SipPhone1.ReleaseCall()

def outbound_mix_8():
  """E8. DN1 internal call to DN3, DN3 tinit to Ext1DN, rel DN1, Ext1DN ans, Ext1DN rel"""
  SipPhone1.MakeCall(DN3)
  SipPhone3.AnswerCall()
  SipPhone3.InitiateTransfer(Ext1DN2)
  SipPhone1.ReleaseCall()
  Ext1DN2.AnswerCall()
  SipPhone3.ReleaseCall()

def outbound_mix_9():
  """E11. DN1 internal call to DN3, DN3  blind trans to Ext1DN, rel DN1"""
  SipPhone1.MakeCall(DN3)
  SipPhone3.AnswerCall()
  SipPhone3.InitiateTransfer(Ext1DN2)
  SipPhone3.CompleteTransfer()
  Ext1DN2.AnswerCall()
  SipPhone1.ReleaseCall()

def outbound_mix_10():
  """E12. DN1 internal call to DN3, DN3  blind trans to Ext1DN, abn, rel DN1"""
  SipPhone1.MakeCall(DN3)
  SipPhone3.AnswerCall()
  SipPhone3.InitiateTransfer(Ext1DN2)
  SipPhone3.CompleteTransfer()
  SipPhone1.ReleaseCall()

def outbound_mix_16():
  """E20. DN1 internal call to DN3, DN3 conference to Ext1DN, release DN1,DN3"""
  SipPhone1.MakeCall(DN3)
  SipPhone3.AnswerCall()
  SipPhone3.InitiateConference(Ext1DN2)
  Ext1DN2.AnswerCall()
  SipPhone3.CompleteConference()
  SipPhone1.ReleaseCall()
  SipPhone3.ReleaseCall()

def outbound_mix_17():
  """E21. DN1 internal call to DN3, DN3 cinit conf to Ext1DN, abn release DN3, release DN1"""
  SipPhone1.MakeCall(DN3)
  SipPhone3.AnswerCall()
  SipPhone3.InitiateConference(Ext1DN2)
  SipPhone3.ReleaseCall()
  SipPhone1.ReleaseCall()

